{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form name="myform" action="" method="get">	
                <div class="box-header with-border">
                    <span class="fa fa-pencil" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">教师档案列表</p>
                    <a href="tp/teacher_in.xls" class="btn btn-success btn-sm" style="float:right; color:#fff; margin-left:10px;">模版</a>
                    <a href="index.php?a=teacher.outdata&staff_position={%$staff_position%}&staff_education={%$staff_education%}&staff_name={%$staff_name%}" target="_blank" class="btn btn-warning btn-sm" style="float:right; color:#fff; margin-left:10px;">导 出</a>
					<a href="index.php?a=teacher.in" class="btn btn-success btn-sm" style="float:right; color:#fff; margin-left:10px;">导 入</a>
					<a href="index.php?a=teacher.add" class="btn btn-primary btn-sm" style="float:right; color:#fff;">新 增</a>
                </div>
                <div class="box-body">
                    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; ">
							   姓名：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							   <input type="text" class="form-control" value="{%$staff_name%}"  name="staff_name">
						  </div>						  
				    </div>
				    <div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
							   学历：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="staff_education">
                              <option>全部</option>
					      {%foreach from=$education_ini key=key item=value%}
                                <option value="{%$key%}" {%if $staff_education==$key%}selected{%/if%}>{%$value%}</option>
                          {%/foreach%}
                              </select> 
						  </div> 
				    </div>
					<div class="col-md-3 form-group">
						  <label for="inputPassword3" class="col-sm-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500; margin:0;">
							   职称：
						  </label>
						  <div class="input-group col-md-8 col-xs-12">
							  <select class="form-control" name="staff_position">
                              <option>全部</option>
						 {%foreach from=$position_ini key=key item=value%}
                                <option value="{%$key%}" {%if $staff_positon==$key%}selected{%/if%}> {%$value%}</option>
                          {%/foreach%}
                              </select> 
						  </div> 
				    </div>
					
					<div class="col-md-2 col-xs-12">
						<input type="hidden" name="a" value="teacher.list">
					   <button type="submit" class="btn btn-warning">查 询</button>
					</div>
                    <div style="clear:both; height:2px;"></div>
                    <div style="width:100%; overflow-x:scroll">
                     <table class="table table-bordered table-striped"  id="mytable">
                                <thead>
                                    <tr style="background-color:#a273ff">
                                        <td>编号</td> 
                                        <td>姓名</td> 
                                        <td>性别</td> 
                                        <td>出生日期</td> 
                                        <td>学历</td> 
                                        <td>职称</td> 
                                        <td>参加工作时间</td> 
                                        <td>到校工作时间</td> 
                                        <td>在职状态</td> 
										<td width="260">操作</td>
                                    </tr>	
                                </thead>

                                <tbody>
                               {%foreach from=$staff_lists key=key item=value%}
                                    <tr>
                                        <td>{%$value.staff_number%}</td>
                                        <td>{%$value.staff_name%}</td> 
                                        <td>{%$value.staff_sex%}</td> 
                                        <td>{%$value.staff_birth%}</td> 
                                        <td>{%$value.staff_education%}</td> 
                                        <td>{%$value.staff_position%}</td> 
                                        <td>{%$value.start_time%}</td> 
                                        <td>{%$value.end_time%}</td> 
                                        <td>{%$value.staff_sign%}</td> 
                                           <td> 
                                        	  <a href="index.php?a=teacher.update&staff_id={%$value.staff_id%}" class="btn btn-warning btn-xs"> 修  改 </a>
											  <a href="index.php?a=change.add&staff_id={%$value.staff_id%}&personnel_type=1" class="btn btn-success btn-xs"> 人事变动</a>
											  <a href="index.php?a=teacher.teachlist&staff_id={%$value.staff_id%}&teacher_type=1" class="btn btn-info btn-xs"> 教学信息</a>
											  <a href="index.php?a=teacher.del&staff_id={%$value.staff_id%}" class="btn btn-danger btn-xs" onclick="if(confirm('警告！确认删除信息?')==false)return false;">删除</a>
                                         </td>
                                         
                                          
                                    </tr>	
                                 {%/foreach%}
                           
                               </tbody>
                        </table>
                       
                        </div>
                        
				   </div><!--box-body -->
                   <div class="box-footer">
                       {%$page%}
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
 
  {%include file="index.footer.tpl.php"%}
